package org.inspursc.s0517.health.common.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;


@Data
@Entity(name = "sys_role")
@DynamicUpdate
public class SysRole  extends AbstractIdEntity {

    /**
     * 角色名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 角色描述
     */
    @Column(name = "description")
    private String description;

    /**
     * 状态 （0：禁用，1：启用， 默认：1 启用）
     */
    @Column(name = "status")
    private Integer status;

    @Override
    public String toString() {
        return "SysRole{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", status=" + status +
                '}';
    }
}
